home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 5 / Example 5.4 / object.h < prev   
Encoding:
C/C++ Source or Header  |  2006-06-29  |  590 b   |  31 lines

  1. #ifndef RTS_OBJECT
  2. #define RTS_OBJECT
  3.  
  4. #include <d3dx9.h>
  5. #include <vector>
  6. #include "functions.h"
  7. #include "debug.h"
  8. #include "mesh.h"
  9.  
  10. HRESULT LoadObjectResources(IDirect3DDevice9* Device);
  11. void UnloadObjectResources();
  12.  
  13. #define GNOME 0
  14.  
  15. class OBJECT{
  16.     public:
  17.         OBJECT();
  18.         OBJECT(int t, D3DXVECTOR3 pos, D3DXVECTOR3 rot, D3DXVECTOR3 sca, std::string _name);
  19.         void Render();
  20.         void PaintSelected();
  21.  
  22.         D3DXVECTOR3 GetPosition(){return m_meshInstance.m_pos;}
  23.  
  24.         MESHINSTANCE m_meshInstance;
  25.         int m_type;
  26.         bool m_selected;
  27.         std::string m_name;
  28. };
  29.  
  30.  
  31. #endif